<%@page import="com.unice.miage.oobdoo.enumeration.Statut"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ include file="../include/header.jsp" %>
<div id="main">
    <div id="container"> 
        <div id="content">

            <c:if test="${!empty requestScope['lstAlbums']}">
                <h2>Importer vos albums Picasa</h2>
                <div id="form" style="float:left; width:600px;">
                    Veuillez selectionner l'album à importer: <br />
                    <form action="ImportServlet?source=picasa&action=import" method="post">
                        <label for="album">Album : </label>
                        <select name="album">
                            <c:forEach var="album" items="${requestScope['lstAlbums']}">
                                <option value="${album.key}">${album.value}</option>
                            </c:forEach>
                        </select>
                        <br />
                        <label for="statut">Statut : </label>
                        <select name="statut">
                            <%
                                Statut[] s = Statut.values();
                                for (int i = 0; i <= s.length - 1; i++) {
                            %>
                            <option value="<%=s[i].name()%>"><%=s[i].name()%></option>
                            <%
                                }

                            %>
                        </select>
                        <br/>
                        <input type="submit" name="submit" value="Importer"/>
                    </form>
                    <p><b><i>Veuillez patienter pendant l'importation des photos, il se peut que le chargement soit long. <br/>Une fois l'importation termin&eacute;, vous serez redirig&eacute; automatiquement...</i></b></p>
                </div>
                <div>
                    <img src="./style/images/picasa-logo.jpg" height="100"/>
                </div>
            </c:if>
        </div><!-- #content -->
    </div><!-- #container -->
</div><!-- #main -->
<%@ include file="../include/footer.jsp" %>